package com.util;

import redis.clients.jedis.Jedis;

public class JedisTest {

	public static void main(String[] args) {
		Jedis jedis = new Jedis("192.168.252.128", 6378);
		
		if(jedis.exists("a")) {
			System.out.println(jedis.get("a"));
		} else {
			jedis.set("a", "hello world");
		}
		
		jedis.close();
	}
}
